package com.gqj.elec.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.gqj.common.annotation.Excel;
import com.gqj.common.core.domain.BaseEntity;

/**
 * 物资报警对象 elec_warning
 * 
 * @author lxq
 * @date 2023-09-02
 */
public class ElecWarning extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long warningId;

    /** 报警日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "报警日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date warningTime;

    /** 1-检修到期,2-违规带出,3-状态异常,4-其他 */
    @Excel(name = "1-检修到期,2-违规带出,3-状态异常,4-其他")
    private String warningType;

    /** 报警内容 */
    @Excel(name = "报警内容")
    private String warningContent;

    /** 物资类别 */
    @Excel(name = "物资类别")
    private String materialCategory;

    public void setWarningId(Long warningId) 
    {
        this.warningId = warningId;
    }

    public Long getWarningId() 
    {
        return warningId;
    }
    public void setWarningTime(Date warningTime) 
    {
        this.warningTime = warningTime;
    }

    public Date getWarningTime() 
    {
        return warningTime;
    }
    public void setWarningType(String warningType) 
    {
        this.warningType = warningType;
    }

    public String getWarningType() 
    {
        return warningType;
    }
    public void setWarningContent(String warningContent) 
    {
        this.warningContent = warningContent;
    }

    public String getWarningContent() 
    {
        return warningContent;
    }
    public void setMaterialCategory(String materialCategory) 
    {
        this.materialCategory = materialCategory;
    }

    public String getMaterialCategory() 
    {
        return materialCategory;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("warningId", getWarningId())
            .append("warningTime", getWarningTime())
            .append("warningType", getWarningType())
            .append("warningContent", getWarningContent())
            .append("materialCategory", getMaterialCategory())
            .append("remark", getRemark())
            .toString();
    }
}
